//package com.xukehong.demo.rabbitmq;
//
//import org.springframework.amqp.core.AmqpTemplate;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
///**
// * @Author: xkh
// * @Date: 2019/4/30 18:32
// * @Version 1.0
// */
//@Component
//public class HelloSender {
//
//    @Autowired
//    private AmqpTemplate template;
//
//    public void send(){
//        //交换机名称 发送的key值   内容
//        template.convertAndSend("exchange","topic.messages","hello,rabbitmq");
//    }
//}
